import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;

/**
 * 爆炸类
 */
@Data
@AllArgsConstructor
public class Bomb {
    private  int x;
    private  int y;
    private  int life=9;
    private  boolean isLive=true;

    public Bomb(int x, int y) {
        this.x = x;
        this.y = y;
    }

    // 减少生命值
    public void lifeDown(){

        if (life>0){
            life--;
        }else {
            this.isLive=false;
        }

    }

}
